package com.ranjith.struts2.actions;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

public class LogoutAction implements SessionAware{
	private Map session;
	public String execute(){
		session.remove("user");
		return "success";
	}
	
	@Override
	public void setSession(Map session) {
		this.session = session;		
	}

}
